import React from 'react';
import AxCreateFlow from '@/pages/buyer/person/flow/create/index';
import { flowTypes } from '@/pages/buyer/person/flow/type/index';

/** 发起修改在校流程 */
const CreateFlow: React.FC<any> = props => {
    const { location } = props;
    /** 在校Id */
    const { id } = location && location.query || {};
    /** 流程类型 */
    const flowType: any = flowTypes.find((f: any) => f.type === 4) || {};

    return (
        <AxCreateFlow
            type={flowType}
            types={[flowType]}
            flowProps={{
                studentStatusId: id,
            }}
            extraParams={{
                studentId: id,
            }}
        />
    )
};
export default CreateFlow;                                   